package com.atguigu.record;

public class TestTriangle {
    public static void main(String[] args) {
        Triangle.setName("三角形");
        Triangle t1 = new Triangle(3,4,5);
        Triangle t2 = new Triangle(3,4,5);
        System.out.println(t1);
        System.out.println(t2);
        System.out.println(t1 == t2);//false
        System.out.println(t1.equals(t2));//true

        System.out.println(t1.a());//等价于 getA();
        System.out.println(t1.area());
    }
}
